package com.example.demo.pojo.enums.common;

import lombok.AllArgsConstructor;
import lombok.Getter;


/**
 * @Company
 * @ClassName SysErrorEnum
 * @Description 系统异常枚举
 * @author tds
 * @Date 2022-03-28 23:59
 * @version 1.0.0
 */
@Getter
@AllArgsConstructor
public enum SysErrorEnum {

	// ---------------- 900001-999999，常用系统异常 -----------------
	SYS_ERROR("999999","系统繁忙，请稍后重试！");
	
	private String code;
	private String name;
	
	public static SysErrorEnum valueCodeOf(String code){
		for(SysErrorEnum mode :values()){
			if (mode.getCode().equals(code)) {
				return mode;
			}
		}
		return null;
	}

}
